<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Registration Form</title>
    <link rel="stylesheet" href="/static/css/404.css" />
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #7fdcec;
            margin: 0;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        form {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            max-width: 400px;
            width: 100%;
        }
        input[type="text"], input[type="password"], input[type="email"] {
            width: calc(100% - 22px);
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        input[type="submit"] {
            width: 100%;
            padding: 10px;
            border: none;
            background-color: #5c67f2;
            color: white;
            border-radius: 4px;
            cursor: pointer;
        }
        input[type="submit"]:hover {
            background-color: #4a54e1;
        }
        a {
            font-size: 14px;
            color: #333;
            text-decoration: none;
        }
        a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <div id="tsparticles"></div>
    <form method="post" target="_blank" action="http://127.0.0.1:8880/api/register">
        <label for="username">用户名</label>
        <input type="text" id="username" placeholder="请输入用户名" name="username" required>
        <br><br>
        <label for="password">密码</label>
        <input type="password" id="password" placeholder="请输入密码" name="password" required>
        <br><br>
        <label for="phonenumber">手机号</label>
        <input type="text" id="phonenumber" placeholder="请输入手机号" name="phonenumber" required>
        <br><br>
        <label for="email">邮箱</label>
        <input type="email" id="email" placeholder="请输入邮箱" name="email" required>
        <br><br>
        <input type="submit" value="注册">
    </form>
    <span>&nbsp;&nbsp;&nbsp;</span>
    <a href="/login">已有账号，去登录</a>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/tsparticles/1.18.11/tsparticles.min.js"></script>
    <script src="/static/js/404.js"></script>
</body>
</html>
